package org.thotheolh.db2json.db.struct;

import java.util.ArrayList;

public class Tuple {

	private ArrayList<Element> tupleList = null;

	public Tuple() {
		tupleList = new ArrayList<Element>();
	}

	public void addRaw(Object data) {
		tupleList.add(new Element(data));
	}

	public void addKeyValue(String key, Object value) {
		tupleList.add(new Element(key,value));
	}

	public ArrayList<Element> getTuple() {
		return tupleList;
	}

	public int size() {
		return tupleList.size();
	}

	public Element get(int i) {
		return tupleList.get(i);
	}

	public void remove(int i) {
		tupleList.remove(i);
	}

}
